API Documentation
Static Public Member Functions | List of all members
nkAstraeus::lua::nkGraphicsWrap::CameraWrapper Class Referencefinal

Wraps a nkGraphics::Camera and offers functions for use in scripting. More...

Static Public Member Functions

static void updateEnvironment (nkScripts::Environment *env)
 
static nkScripts::OutputValue getPositionAbsolute (void *data)
 
static nkScripts::OutputValue getFrustum (void *data)
 
static nkScripts::OutputValue getFov (void *data)
 

Detailed Description

Wraps a nkGraphics::Camera and offers functions for use in scripting.

Member Function Documentation

◆ updateEnvironment()

static void nkAstraeus::lua::nkGraphicsWrap::CameraWrapper::updateEnvironment ( nkScripts::Environment env)
static

Updates a given environment and set it up to use all functions wrapped by this wrapper.

Parameters
envThe environment to set up.

◆ getPositionAbsolute()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::CameraWrapper::getPositionAbsolute ( void *  data)
static

Wrapper function for the nkGraphics::Camera::getPositionAbsolute(), exposed as an attribute getter.

local d = c.positionAbsolute ;
Parameters
dataThe data from which the attribute will be retrieved.
Returns
The attribute value, as a nkGraphics::Vector.

◆ getFrustum()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::CameraWrapper::getFrustum ( void *  data)
static

Wrapper function for the nkGraphics::Camera::getFrustum(), exposed as an attribute getter.

local d = c.frustum ;
Parameters
dataThe data from which the attribute will be retrieved.
Returns
The attribute value, as a nkGraphics::Frustum.

◆ getFov()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::CameraWrapper::getFov ( void *  data)
static

Wrapper function for the nkGraphics::Camera::getFov(), exposed as an attribute getter.

local d = c.fov ;
Parameters
dataThe data from which the attribute will be retrieved.
Returns
The attribute value, as a float.

The documentation for this class was generated from the following file: